package com.sc.admin.model.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *@Author shen chen
 *@Date 2024-12-17
 */

/**
 * 用户和角色关联表
 */
@Schema(description = "用户和角色关联表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_user_role")
public class SysUserRole implements Serializable {

    @TableField(value = "user_id")
    @Schema(description = "用户ID")
    private Long userId;

    @TableField(value = "role_id")
    @Schema(description = "角色ID")
    private Long roleId;

    private static final long serialVersionUID = 1L;
}